package com.example.gray.arcview;

import android.animation.ObjectAnimator;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {
    private ArcView arcView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        arcView=findViewById(R.id.arcView);
        arcView.setMax(5000);
        ObjectAnimator objectAnimator = ObjectAnimator.ofInt(arcView, "progress", 0, 2700);
        objectAnimator.setDuration(1000);
        objectAnimator.start();
    }
}
